package com.example.exception;


import com.example.result.Code;
import com.example.result.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Author luqi
 * @Date 2025 06 19 09 23
 **/

@RestControllerAdvice
public class ProjectException {
    @ExceptionHandler
    public Result doException(Exception e){
        return Result.error(Code.ERROR_UNKNOWN,"666你在干什么！你把肾换码弄炸了！");
    }
}
